package com.itheima.dao.Impl;

import com.itheima.dao.BookDao;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

@Repository(value = "bookDao")
@Scope("prototype")
public class BookDaoImpl implements BookDao {

    public void save() {
        System.out.println("book dao save...");
    }


    @PostConstruct
    public void init() {
        System.out.println("book dao init...");
    }

    @PreDestroy
    public void destory() {
        System.out.println("book dao destory...");
    }
}
